<template>
  <view class="step-box">
    <u-steps :list="numList" :current="step" mode="number"></u-steps>
  </view>
</template>

<script>
import AuthInfo from "@/utils/authInfo.js";
let numList = AuthInfo.getNumList();
export default {
  data() {
    return {
        numList
    };
  },
  props: {
    step: {
      type: Number,
      default: 1,
    },
  },
  mounted() {
    // 及时刷新步骤
    this.numList = AuthInfo.getNumList();
  }
};
</script>

<style lang="scss" scoped>
.step-box {
  padding: 20px 0;
}
</style>
